<template>
  <div class="container">
    <el-card class="login-box">
      <div>
        <h3>用户注册</h3>
      </div>
      <el-form>
        <el-form-item>
          <el-input prefix-icon="el-icon-user-solid"></el-input>
        </el-form-item>
        <el-form-item>
          <el-input show-password  prefix-icon="el-icon-s-goods"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" class="loginbtn">登录</el-button>
        </el-form-item>
      </el-form>
      <div>
        已经有账号了，请  <a href="#" @click.prevent="goLogin">登录</a> 
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
    methods:{
        goLogin(){
           this.$router.replace('/login')
        }
    }
};
</script>

<style lang="scss" scoped>
.container {
  width: 100vw;
  min-height: 100vh;
  background-image: url('../assets/bg.jpg');
  background-size: 100%;
}
.login-box {
  position:absolute;
  width: 500px;
  right: 100px;
  top: 200px;
}
.loginbtn{
    width: 460px;
}
</style>